package com.huanzhidadi.singleweb.delayqueue;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(tags = "延迟队列验证tags")
@RequestMapping(value = "delayQueueGet")
public class DelayQueueGetController {

    @Autowired
    private DelayQueueManager delayQueueManager;

    @ApiOperation(value = "移出延迟队列value", notes = "移出延迟队列notes")
    @RequestMapping(value = "/get", method = RequestMethod.POST)
    public void get() {
        delayQueueManager.remove();
    }
}
